package ast.terminais;

import org.antlr.runtime.Token;

import ast.IVisitor;
import ast.Node;

public class IntPositivo extends Node{
	public IntPositivo(Token payload) {
		super(payload);

	}
	public int getValue() {
		String aux ="";
		for (Object node : getChildren()) {
			aux += getChild(0).getText();
 			
 			}
		return Integer.parseInt(aux);
	}
	@Override
	public Object accept(IVisitor visitor, Object o) {

		return visitor.visit(this, o);
	}

}
